package cate.common.table.item.rune.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "自定义徽章道具")
public class CustomRuneItemRow extends ERow {
    @NoteField(value = "徽章ID")
    public int runeTid;

    @NoteField(value = "技能分组")
    public int skillGroup;

    @NoteField(value = "技能数量")
    public int skillNum;

    @NoteField(value = "是否随机")
    public boolean random;

    @Override
    public void parse(XSSFRowWrap xr) {
        this.id = xr.getInteger("物品ID");
        this.runeTid = xr.getInteger("徽章ID");
        this.skillGroup = xr.getInteger("技能分组");
        this.skillNum = xr.getInteger("技能数量");
        this.random = xr.getBoolean("是否随机", false);
    }

    @Override
    public void decode() {}
}
